package com.zkk.service.impl;

import com.zkk.dao.UserDao;
import com.zkk.dao.impl.UserDaoImpl;
import com.zkk.pojo.User;
import com.zkk.service.UserService;

public class UserServiceImpl implements UserService {
     UserDao userDao = new UserDaoImpl();
    @Override
    public User checkRegister(User user) {
        return userDao.checkRegister(user);
    }

    @Override
    public User existsTelephone(String telephone) {
        return userDao.existsTelephone(telephone);
    }

    @Override
    public int addUser(User user) {
        return userDao.addUser(user);
    }

    @Override
    public User findTelPwd(User user) {
        return userDao.findTelPwd(user);
    }

    @Override
    public int updateUser(User user) {
        return userDao.updateUser(user);
    }


}
